[Backport release-24.11] nixos/postgresql: extension based hardening relaxation#356574
Merged
Ma27 merged 4 commits intorelease-24.11from Nov 17, 2024
Merged
[Backport release-24.11] nixos/postgresql: extension based hardening relaxation#356574Ma27 merged 4 commits intorelease-24.11from
Ma27 merged 4 commits intorelease-24.11from
Conversation
This is the upstream lingo, and it makes everything slightly less confusing. (cherry picked from commit 223a6c6)
By matching on the package names of the plugins passed into the package we can relax the systemd unit hardening as needed. (cherry picked from commit d370af0)
The plv8 plugin requires access to pkey syscalls. The execution will crash hard when it is not allowed by the syscall filter. Co-Authored-By: Jan Tojnar <jtojnar@gmail.com> (cherry picked from commit e198536)
PostgreSQL with JIT support enabled doesn't work with plv8. Hence, we'd get an evaluation failure for each `nixosTests.postgresql.postgresql.postgresql_jit_X`. This should be restructured in the future (less VM tests for custom extensions, but a single VM test for this case to cover). For now, we should get this fix out and this is a good-enough approach. (cherry picked from commit 68d9643)
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bot-based backport to
release-24.11, triggered by a label in #355010.